package com.freewater.library.catalogue.infrastructure.dao;

import com.freewater.library.catalogue.infrastructure.po.BookPo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface BookDao extends JpaRepository<BookPo, String> {

    Optional<BookPo> findByIsbn(String isbn);

    boolean existsByIsbn(String isbn);
}
